Micron Document
`:top
A `!distributed SQL`! database is a single `F33f`_`[relational database`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Relational_database]`_`f which replicates data across multiple servers. Distributed SQL databases are strongly consistent and most support consistency across racks, data centers, and `F33f`_`[wide area networks`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Wide_area_network]`_`f including cloud availability zones and cloud geographic zones. Distributed SQL databases typically use the `F33f`_`[Paxos`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Paxos_(computer_science)]`_`f or `F33f`_`[Raft`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Raft_(algorithm)]`_`f algorithms to achieve `F33f`_`[consensus`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Consensus_decision-making]`_`f across multiple nodes.

Sometimes distributed SQL databases are referred to as `F33f`_`[NewSQL`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=NewSQL]`_`f but NewSQL is a more inclusive term that includes databases that are not `F33f`_`[distributed databases`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Distributed_databases]`_`f.

>>Contents

• `F0af`_`[History`#history]`_`f
• `F0af`_`[Architecture`#architecture]`_`f
• `F0af`_`[Distributed SQL implementations`#distributed-sql-implementations]`_`f
• `F0af`_`[Compared to NewSQL`#compared-to-newsql]`_`f
• `F0af`_`[References`#references]`_`f

-─

>>History

`F33f`_`[Google`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Google]`_`f's `F33f`_`[Spanner`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Spanner_(database)]`_`f popularized the modern distributed SQL database concept. Google described the database and its architecture in a 2012 whitepaper called "Spanner: Google's Globally-Distributed Database." The paper described Spanner as having evolved from a `F33f`_`[Big Table`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Big_Table]`_`f-like `F33f`_`[key value`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Key_value]`_`f store into a temporal multi-version database where data is stored in "schematized semi-relational tables."`:cite-ref-autogenerated1-1-0[`F5bf`_`[1`#cite-note-autogenerated1-1]`_`f]

Spanner uses atomic clocks with the Paxos algorithm to accomplish consensus with regards to state distributed between servers. In 2010, and earlier implementation, `F33f`_`[ClustrixDB`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Clustrix]`_`f (now `F33f`_`[MariaDB`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=MariaDB]`_`f Xpand) moved from a hardware appliance to a Paxos-based software database`:cite-ref-2[`F5bf`_`[2`#cite-note-2]`_`f] and was later acquired by `F33f`_`[MariaDB`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=MariaDB]`_`f`:cite-ref-3[`F5bf`_`[3`#cite-note-3]`_`f] and added to a `F33f`_`[SaaS`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=SaaS]`_`f cloud offering called `F33f`_`[SkySQL`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=MariaDB]`_`f.`:cite-ref-4[`F5bf`_`[4`#cite-note-4]`_`f] In 2015, two Google engineers left the company to create `F33f`_`[Cockroach DB`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cockroach_Labs]`_`f which achieves similar results using the Raft algorithm without atomic clocks or custom hardware.`:cite-ref-5[`F5bf`_`[5`#cite-note-5]`_`f]

Spanner is primarily used for transactional and time-series use cases. However, Google furthered this research with a follow on paper about Google F1 which it describes as a `F33f`_`[Hybrid transactional/analytical processing`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Hybrid_transactional/analytical_processing]`_`f database built on Spanner.`:cite-ref-autogenerated1-1-1[`F5bf`_`[1`#cite-note-autogenerated1-1]`_`f]

>>Architecture

Distributed SQL databases have the following general characteristics:

• synchronous replication
• strong transactional consistency across at least availability zones (i.e. `F33f`_`[ACID`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ACID]`_`f compliance)`:cite-ref-6[`F5bf`_`[6`#cite-note-6]`_`f]
• relational database front end structure – meaning data represented as tables with rows and columns similar to any other `F33f`_`[RDBMS`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=RDBMS]`_`f
• automatically `F33f`_`[sharded`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Shard_(database_architecture)]`_`f data storage
• underlying key–value storage`:cite-ref-7[`F5bf`_`[7`#cite-note-7]`_`f]`:cite-ref-autogenerated1-1-2[`F5bf`_`[1`#cite-note-autogenerated1-1]`_`f]
• native SQL implementation

Following the `F33f`_`[CAP Theorem`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CAP_Theorem]`_`f, distributed SQL databases are "CP" or consistent and partition-tolerant. Algorithmically they sacrifice availability in that a failure of a primary node can make the database unavailable for writes.

All distributed SQL implementations require some kind of temporal synchronization to guarantee consistency. With the exception of Spanner, most do not use custom hardware to provide atomic clocks. Spanner is able to synchronize writes with temporal guarantees. Implementations without custom hardware require servers to compare clock offsets and potentially retry reads.`:cite-ref-8[`F5bf`_`[8`#cite-note-8]`_`f]

>>Distributed SQL implementations

`t
| Vendor | API | License model |
|---|---|---|
| Amazon Aurora | PostgreSQL & MySQL | Proprietary |
| CockroachDB | PostgreSQL -like | Proprietary |
| Google Spanner | Proprietary SQL-like | Proprietary |
| MySQL Cluster | MySQL | Open Source (GPLv2) |
| NuoDB | Proprietary SQL | Proprietary |
| YugabyteDB | PostgreSQL & Cassandra CQL-like | Open Source (Apache 2.0) |
| TiDB | MySQL -like | Open Source (Apache 2.0) |
| MariaDB XPand | MariaDB | Proprietary |
| Teradata | Proprietary SQL-like | Proprietary |
| YDB [ 9 ] | Proprietary SQL-like, PostgreSQL -like | Open Source (Apache 2.0) |
`t

>>Compared to NewSQL

CockroachDB, YugabyteDB and others have at times referred to themselves as `F33f`_`[NewSQL`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=NewSQL]`_`f databases. Some of the NewSQL databases have fundamentally different architectures, but were cited as examples of NewSQL by Matthew Aslett who coined the term.`:cite-ref-10[`F5bf`_`[10`#cite-note-10]`_`f] In essence, distributed SQL databases are built from the ground-up and NewSQL databases include replication and sharding technologies added to existing client-server relational databases like `F33f`_`[PostgreSQL`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=PostgreSQL]`_`f.`:cite-ref-11[`F5bf`_`[11`#cite-note-11]`_`f] Some experts define DistributedSQL databases as a more specific subset of NewSQL databases.`:cite-ref-12[`F5bf`_`[12`#cite-note-12]`_`f]

>>References

`:cite-note-autogenerated1-1`!1.`! `F0af`_`[↑`#cite-ref-autogenerated1-1-0]`_`f https://storage.googleapis.com/pub-tools-public-publication-data/pdf/41344.pdf
`:cite-note-2`!2.`! `F0af`_`[↑`#cite-ref-2]`_`f `:citerefhigginbotham2010`aHigginbotham, Stacey (May 3, 2010). "Clustrix Builds the Webscale Holy Grail: A Database That Scales". `*gigaom.com`*.
`:cite-note-3`!3.`! `F0af`_`[↑`#cite-ref-3]`_`f "MariaDB acquires Clustrix". 20 September 2018.
`:cite-note-4`!4.`! `F0af`_`[↑`#cite-ref-4]`_`f `:citerefbaer-dbinsight`aBaer (dbInsight), Tony. "For MariaDB, it's time to put the pieces together". `*ZDNet`*.
`:cite-note-5`!5.`! `F0af`_`[↑`#cite-ref-5]`_`f `:citerefmorgan2017`aMorgan, Timothy Prickett (February 22, 2017). "Google Spanner Inspires CockroachDB To Outrun It". `*The Next Platform`*.
`:cite-note-6`!6.`! `F0af`_`[↑`#cite-ref-6]`_`f `*The future of databases: distributed SQL & MariaDB ®`*, retrieved 2022-12-21
`:cite-note-7`!7.`! `F0af`_`[↑`#cite-ref-7]`_`f "The Architecture of a Distributed SQL Database". 23 September 2020 – via www.youtube.com.
`:cite-note-8`!8.`! `F0af`_`[↑`#cite-ref-8]`_`f "Living Without Atomic Clocks". `*Cockroach Labs`*. April 21, 2020.
`:cite-note-9`!1.`! "YDB is an open-source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions". `*ydb.tech`*.
`:cite-note-10`!10.`! `F0af`_`[↑`#cite-ref-10]`_`f "What we talk about when we talk about NewSQL — Too much information".
`:cite-note-11`!11.`! `F0af`_`[↑`#cite-ref-11]`_`f "SQL vs. NoSQL Databases: What's the Difference?". `*www.ibm.com`*. 12 June 2022.
`:cite-note-12`!12.`! `F0af`_`[↑`#cite-ref-12]`_`f `:citerefprabagaren2019`aPrabagaren, Gokul (October 30, 2019). "NewSQL — The Next Evolution in Databases". `*Medium`*.

`c`F0af`_`[↑ Back to top`#top]`_`f`a